<?php if (!defined('THINK_PATH')) exit();?>
<div class="nav_title">温馨提醒</div>
<div class="msg_box">
	<div id="content">
		<?php if($status == 1): ?><div class="true"><?php echo ($error); echo ($message); ?></div>
		<?php else: ?>
		<div class="false"><?php echo ($error); echo ($message); ?></div><?php endif; ?>
	</div>
	<div class="autoclose jump">系统将在<span class="false" id="wait"><?php echo ($waitSecond); ?></span>秒后进行跳转，如果没有自动跳转,请<span style="color:#3980d8;"><a id="href" href="<?php echo ($jumpUrl); ?>">点击这里</a></span></div>
</div>
<script type="text/javascript">
	(function(){
		var wait = document.getElementById('wait'),href = document.getElementById('href').href;
		console.log(wait+'----'+href);
		var interval = setInterval(function(){
			var time = --wait.innerHTML;
			if(time == 0) {
				location.href = href;
				clearInterval(interval);
			};
		}, 1000);
	})();
</script>